
import service from "../request.js";

export function getShoppingCart(query) {
    return service({
      method: "post",
      url: "/shopping/list",
      data:query
    });
  }
  export function addToCart(query) {
    return service({
      method: "post",
      url: "/shopping/cart",
      data: query,
    });
  }
  export function updateCart(query) {
    return service({
      method: "post",
      url: "/shopping/update",
      data: query,
    });
  }
  export function deleteCart(query) {
    return service({
      method: "post",
      url: "/shopping/delete",
      data: query,
    });
  }
  export function orderDrug(query) {
    return service({
      method: "post",
      url: "/shopping/order",
      data: query,
    });
  }

